import { Session } from '/@/utils/storage';
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  labelWidth: '160',
  indexWidth: '60',
  columnBtn: false,
  viewBtn: true,
  selection: true,
  searchEnter:true,
  searchLabelWidth: 'auto',
  searchMenuPosition: 'left',
  column: [
    // {
    //   "type": "input",
    //   "label": "主键",
    //   "prop": "irId",
    //   "addDisplay": false,
    //   "editDisabled": true
    // },
    {
      type: 'input',
      label: '路线名称',
      prop: 'routeName',
      overHidden: true,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入路线名称',
          trigger: 'blur'
        }
      ]
    },
    {
      type: 'radio',
      label: '是否强制排序',
      prop: 'isSort',
      border: true,
      hide: true,
      dicUrl: '/api/admin/omodict/item/select?dictKey=is_sort',
      dicHeaders: {
        authorization: 'Bearer ' + Session.get('token'),
      },
      props: {
        label: 'label',
        value: 'value'
      }
    },
    {
      type: 'textarea',
      label: '路线描述',
      prop: 'routePosition',
      overHidden: true,
      minRows: 2,
      span: 24
    },
    {
      type: 'input',
      label: '巡检点信息',
      slot: true,
      formslot: true,
      hide: true,
      overHidden: true,
      span: 24,
      prop: 'relList'
    }
  ]
}
